package com.sh.data.engine.domain.integration.datasource.model.mapper;

import com.sh.data.engine.domain.integration.datasource.model.domain.DataSourceDetailDomain;
import com.sh.data.engine.domain.integration.datasource.model.param.DataSourceMongoSaveParam;
import com.sh.data.engine.repository.dao.integration.datasource.entity.DataSourceEntity;
import org.mapstruct.Mapper;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/11 16:34
 */
@Mapper(componentModel = "spring")
public interface MongoConfigMapper {

    DataSourceEntity.MongoConfig paramToConfig(DataSourceMongoSaveParam param);

    DataSourceDetailDomain.MongoConfig entityToDomain(DataSourceEntity.MongoConfig config);
}
